package com.thunbu.lib_common.utils.okhttp;



import com.thunbu.lib_common.utils.okhttp.builder.GetBuilder;
import com.thunbu.lib_common.utils.okhttp.callback.FileCallBack;

import org.apache.http.params.CoreConnectionPNames;


/**
 * Created by Administrator on 2016/5/25.
 */
public class HttpManager {

    public static void downloadFileWithTag(String tag, String fileUrl, FileCallBack fileCallBack){
       new GetBuilder()
                .addParams(CoreConnectionPNames.SO_TIMEOUT,"300000")
                .url(fileUrl)
                .tag(tag)
                .build()
                .execute(fileCallBack);
    }
}
